<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>



<!DOCTYPE html>
<html>
<head id="MyHead">
<script src="/resources/Scripts/jquery.min.js" type="text/javascript"></script>
<script src="/resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
<link href="/resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
<script src="/resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="/resources/Scripts/jquery.validate.unobtrusive.min.js"
	type="text/javascript"></script>

<script src="/resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
<link href="/resources/Res/easyui/themes/icon.css" rel="stylesheet"
	type="text/css" />
<link href="/resources/Res/easyui/themes/default/easyui.css" rel="stylesheet"
	type="text/css" />
<link href="/resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
<title></title>

<script type="text/javascript">
	$(function() {

	});
</script>

<script type='text/javascript'>
	function ajaxFrom(form, url) {
		progressComm();
		$.ajax({
			url : url,
			type : "Post",
			data : $(form).serialize(),
			dataType : "json",
			success : function(data) {
				$.messager.progress('close');
				if ($.messager) {
					$.messager.defaults.ok = '继续';
					$.messager.defaults.cancel = '返回';

					$.messager.confirm('操作提示', data.msg, function(r) {
						if (!r) {
							window.location.href = 'javascript:history.go(-1)';
						}
					});
				}

			}
		});
	}

	$(function() {

		$("form").submit(function(form) {
			if (form.result) {
				ajaxFrom(this, this.action);
			}
			return false;
		});
	});
</script>
</head>
<body>
	<div class="mbx">修改 短信管理</div>
	<form action="/Message/doMsgEdit" method="post">

		<fieldset>
			<legend>
				<input class="submitcss" type="submit" value="修改" /> 
				<input class="submitcss" type="button" onclick="BackList('Message/D_Msg_Manage.jsp')" value="返回列表" />
			</legend>
			<div class="bigdiv">
				<div class="editor-label">
					<label for="msgId">短信编号</label>
				</div>
				<div class="editor-field">
					<b><input data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="msgId" name="msgId" type="hidden" value="${msg.msgId }" /> </b>
				</div>
				<div class="editor-label">
					<label for="msgTitle">短信标题</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true" data-val-length="长度不可超过200" data-val-length-max="200"
						id="msgTitle" name="msgTitle" type="text" value="${msg.msgTitle }" />
					<span class="field-validation-valid" data-valmsg-for="msgTitle" data-valmsg-replace="true"></span>
				</div>
				<br style="clear: both;" />
				<div class="editor-label">
					<label for="msgContent">短信内容</label>
				</div>
				<div class="textarea-box">
					<textarea cols="20" data-val="true" data-val-length="长度不可超过4000" data-val-length-max="4000" 
					id="msgContent" name="msgContent" rows="2">
						${msg.msgContent }
					</textarea>
					<span class="field-validation-valid" data-valmsg-for="msgContent" data-valmsg-replace="true"></span>
				</div>
				<input id="msgCreateDate" name="msgCreateDate" type="hidden"
					value="${msg.msgCreateDate }" /><input data-val="true"
					data-val-length="长度不可超过200" data-val-length-max="200"
					id="msgSender" name="msgSender" type="hidden"
					value="${msg.msgSender }" />
			</div>
		</fieldset>

	</form>
</body>
</html>
